package com.ruoyi.mall.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 卡包对象 mall_packages
 * 
 * @author ruoyi
 * @date 2020-05-25
 */
public class MallPackages extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 卡卷包id */
    private Long packageId;

    /** 卡卷包标题 */
    @Excel(name = "卡卷包标题")
    private String packageName;

    /** 售卖时间段 */
    @Excel(name = "售卖时间段")
    private String sellTime;

    /** 使用说明 */
    @Excel(name = "使用说明")
    private String useDesc ;
    @Excel(name = "图片路径")
    private String images;

    public String getImages() {
        return images;
    }

    public void setImages(String images) {
        this.images = images;
    }

    /** 有效天数 */
    @Excel(name = "有效天数")
    private Long effectiveDays;
    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;



    /** 发放数量 */
    @Excel(name = "发放数量")
    private Long num;

    /** 已发放数量 */
    @Excel(name = "已发放数量")
    private Long saleNum;

    /** 状态(0:为上架，1为下架） */
    @Excel(name = "状态(0:为上架，1为下架）")
    private Integer state;

    public void setPackageId(Long packageId) 
    {
        this.packageId = packageId;
    }

    public Long getPackageId() 
    {
        return packageId;
    }
    public void setPackageName(String packageName) 
    {
        this.packageName = packageName;
    }

    public String getPackageName() 
    {
        return packageName;
    }
    public void setSellTime(String sellTime) 
    {
        this.sellTime = sellTime;
    }

    public String getSellTime() 
    {
        return sellTime;
    }
    public void setUseDesc(String useDesc)
    {
        this.useDesc = useDesc;
    }

    public String getUseDesc()
    {
        return useDesc;
    }
    public void setEffectiveDays(Long effectiveDays) 
    {
        this.effectiveDays = effectiveDays;
    }

    public Long getEffectiveDays() 
    {
        return effectiveDays;
    }
    public void setNum(Long num) 
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }
    public void setSaleNum(Long saleNum) 
    {
        this.saleNum = saleNum;
    }

    public Long getSaleNum() 
    {
        return saleNum;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }
    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("packageId", getPackageId())
            .append("packageName", getPackageName())
            .append("sellTime", getSellTime())
            .append("useDesc", getUseDesc())
            .append("effectiveDays", getEffectiveDays())
            .append("num", getNum())
            .append("saleNum", getSaleNum())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("state", getState())
            .toString();
    }
}
